package com.example.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————学费类
 * @date 2019-12-17 17:17
 */
@Entity
@Table(name = "tuition")
public class Tuition implements Serializable {

    private static final long serialVersionUID = -1116423443143187424L;

    @Id
    @GeneratedValue
    @Column(name = "tuition_Id")
    private Integer tuitionId;//学费ID

    @Column(name = "student_class_Id")
    private Integer studentClassId;//学期ID

    @Column(name = "charge_type_Id")
    private Integer chargeTypeId;//费用ID

    @Column(name = "price", length = 10)
    private BigDecimal price;//价格

    @Column(name = "status", length = 10)
    private String status;//状态

    @Column(name = "comment", length = 255)
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public Tuition() {
        //无参构造
    }


    public Integer getTuitionId() {
        return tuitionId;
    }


    public void setTuitionId(Integer tuitionId) {
        this.tuitionId = tuitionId;
    }


    public Integer getChargeTypeId() {
        return chargeTypeId;
    }


    public void setChargeTypeId(Integer chargeTypeId) {
        this.chargeTypeId = chargeTypeId;
    }


    public Integer getstudentClassId() {
        return studentClassId;
    }


    public void setstudentClassId(Integer studentClassId) {
        this.studentClassId = studentClassId;
    }


    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    public String toString() {
        return "Tuition [tuitionId=" + tuitionId + ", studentClassId=" + studentClassId + ", chargeTypeId=" + chargeTypeId + ", price="
                + price + ", status=" + status + ", comment=" + comment + ", recordTime=" + recordTime + ", updateTime="
                + updateTime + "]";
    }


}
